[#macro floor cagegoryId index advert]
[@b2c_goods_category id=cagegoryId]
	[#if category??]
	<div class="floor mt20 b215 cor${index}">
		<div class="mt">
			<h2 class="title">${category.name}</h2>
			<ul class="tags">
			[@b2c_goods_category_list parentId=cagegoryId count=4]
				[#list goodsCategories as cate_level_1]
					<li><a target="_blank" href="${base}${(cate_level_1.path)!}">${cate_level_1.name}</a></li>
				[/#list]
			[/@b2c_goods_category_list]
			</ul>
		</div>
		<div class="mc">
			<div class="brand-ad fl">
				[@b2c_advert_list position=advert num=1]
					[#list tag_list as advert]
                        <a href="${advert.url}" title="${advert.name}"  target="_blank">
                            <img class="lazy" data-original="[@Pic pic=advert.logo/]" width="195" height="520" >
                        </a>
					[/#list]
				[/@b2c_advert_list]
			</div>
			<ul class="p-list fl">
				[@b2c_goods_list cateCode = category.code count=10 orderBy="priority asc"]
					[#list goodsList as goods]
                        <li class="item">
							<a href="${(goods.path)!'#'}" title="${(goods.name)!}" target="_blank">
                                <p class="name">${(goods.name)!}</p>
                                <p class="price"><strong>${currency(goods.price, true)}</strong></p>
                                <p class="img"><img class="lazy" data-original="[@Pic pic=goods.image_default postfix="150x150"/]" width="150" height="150" ></p>
                            </a>
                        </li>
					[/#list]
				[/@b2c_goods_list]
			</ul>
			<div class="clear"></div>
		</div>
	</div>
	[/#if]
[/@b2c_goods_category]
[/#macro]